import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import App from "@/App.vue";
import "virtual:svg-icons-register";
//引入自定义插件对象:注册整个项目全局组件
import globalComponent from "@/components/index.ts";
//引入模板的全局的样式
import '@/styles/index.scss';
//引入路由
import router from '@/router'
//引入仓库
import pinia from '@/store'

const app = createApp(App);

//安装element-plus插件
app.use(ElementPlus);
//安装自定义插件
app.use(globalComponent);
//安装仓库
app.use(pinia);
//注册模板路由
app.use(router);
app.mount("#app");
console.log(import.meta.env);
